package com.xlh.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xlh.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户表
 * 
 * @author chufangzheng
 * @email 1280251739@qq.com
 * @date 2022-01-18 08:42:16
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {


    default List<UserEntity> selectList(String account){

        QueryWrapper<UserEntity> queryWrapper = new QueryWrapper();
        queryWrapper.lambda().eq(UserEntity::getAccount, account);
        List<UserEntity> userEntities = selectList(queryWrapper);

        return userEntities;
    }
}
